package grape.composite.rest.expressway.mapper;

import grape.composite.rest.expressway.form.ExpresswayEntryListForm;
import grape.composite.service.expressway.po.ExpresswayEntry;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import grape.composite.rest.expressway.form.ExpresswayEntryCreateForm;
import grape.composite.rest.expressway.form.ExpresswayEntryUpdateForm;
import grape.composite.rest.expressway.form.ExpresswayEntryListPageForm;
import grape.composite.rest.expressway.vo.ExpresswayEntryVo;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 * 高速公路表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-09-10
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface ExpresswayEntryWebMapper extends WebMapper<ExpresswayEntryVo, ExpresswayEntry> {

    ExpresswayEntry formToPo(ExpresswayEntryCreateForm f);
    ExpresswayEntry formToPo(ExpresswayEntryUpdateForm f);
    ExpresswayEntry formToPo(ExpresswayEntryListPageForm f);
    ExpresswayEntry formToPo(ExpresswayEntryListForm f);
}
